<?php echo $javascript->link('thickbox', false); ?>
<?php $settings = Configure::read('Article'); ?>

<div class="article article-fullview">
    <h1><?php echo $article['Article']['title'] ?></h1>
	
	<div class="attribute-meta">
		<span class="attribute-label attribute-date"><?php echo __('Date', true) ?></span>
		<span class="attribute-value attribute-date"><?php echo $time->niceShort($article['Article']['created']) ?></span>
		<span class="attribute-label attribute-views"><?php echo __('Views', true) ?></span>
		<span class="attribute-value attribute-views"><?php echo $article['Article']['views']; ?></span>
		<span class="attribute-label attribute-views"><?php echo __('Comments', true) ?></span>
		<span class="attribute-value attribute-views">
			<?php echo $this->element('../comments/count', array('plugin' => 'comments', 'cache'=> array('time'=>'+2 hour','key'=> $article['Article']['slug']), 'url'=>$html->url(array('action'=>'view', $article['Article']['slug'])))); ?>
		</span>
	</div>
	
	<div class="float-break">
	
		<div class="attribute-intro">
		    <p><?php echo $article['Article']['intro']; ?></p>
		</div>
	
		<div class="attribute-body">
		    <?php echo $textile->TextileThis($article['Article']['body']); ?>
		</div>
		<?php echo $this->element('bookmark_bar', array('cache'=>'+2 hour')); ?>
		
		
		
		<div class="secondary">
			<?php if( isset($article['Upload']) ):?>
			<div class="float-break">
			<?php foreach($article['Upload'] as $upload):?>
			<div class="attribute-image">
				<?php 
				$upload_path = $upload['dir'] . DS . $upload['filename'];
				?>
				<?php 
				$img_att = array('title' => $upload['title'], 'alt' => $upload['title']);
				echo $lightbox->img(null, $upload_path, $img_att, array(), 'articlethumb'); ?>
				<p class="caption"><strong><?php echo $upload['title'];?></strong> <?php echo $upload['description'];?></p>
				</div>
			<?php endforeach; ?>
			</div>
			<?php endif; ?>
			<?php echo $this->element('../articles/elements/latest_widget', array("cache" => true)); ?>
			
			<?php echo $this->renderElement('ad_articles'); ?>
		
		</div>
		
	
	</div>
	<p class="attribute-link refererlink">
		<?php  echo $html->link(__('Back to articles', true), $referer ); ?>
	</p>
</div>
<?php echo $this->element('../comments/embed', array('plugin' => 'comments')); ?>
<?php //echo $this->element('../comments/embed', array('plugin' => 'comments', 'cache'=> array('time'=>'+2 hour','key'=> $article['Article']['slug']), 'url'=>$html->url(array('action'=>'view', $article['Article']['slug'])))); ?>
